import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';
import 'vant/lib/index.css';
import router from './router'
import $ from "jquery";
import card from "@/uitl/card";

Vue.use(card)
Vue.use(Vant);
Vue.config.productionTip = false

console.log(process.env.VUE_APP_API_URL + "xxxxxxxxx")
console.log(process.env.VUE_APP_MODE + "xxxxxxxxx")
import('./assets/css/style.m.css');
//修复jquery
var fn = $.ajax;
$.ajax = function (args) {
    // if (args.url.indexOf("/hr/api") > -1) {
    //     args.url = args.url.replace("/hr/api", "/hshr/api")
    // }
    // console.log(args.url, "args.urlargs.urlargs.url")
    args.headers = args.headers || {};
    args.headers['bpm-token'] = localStorage.getItem("bpm-token")
    return fn(args);
};


new Vue({
    router,
    render: h => h(App)
}).$mount('#app');
